package com.atguigu.gmall.item.vo;

import com.atguigu.gmall.pms.entity.CategoryEntity;
import com.atguigu.gmall.pms.entity.SkuImagesEntity;
import com.atguigu.gmall.pms.vo.ItemGroupVo;
import com.atguigu.gmall.pms.vo.SaleAttrValueVo;
import com.atguigu.gmall.sms.inter.vo.ItemSaleVo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Data
public class ItemVo {

    //面包屑内容，三级分类、品牌、spu名
    private List<CategoryEntity> categoryEntities;
    private Long brandId;
    private String brandName;
    private Long spuId;
    private String spuName;

    //sku的商品信息，标题副标题价格默认图片所有图片 促销信息 库存情况
    private Long skuId;
    private String title;
    private String subtitle;
    private BigDecimal price;
    private Integer weight;
    private String defaultImage;

    private List<SkuImagesEntity> images;

    private List<ItemSaleVo> sales;

    private Boolean store = false;

    //spu下的商品组合,所有sku的销售属性
    private List<SaleAttrValueVo> saleAttrs;

    //当前sku的销售属性： {3:'白色',8:'8G',8:'128G'}
    private Map<Long,String> saleAttr;
    //sku列表：{'白色,8G,128G': 4 , '白色,8G,512G':6 '白色,12G,128G':7 }
    private String skusJson;
    // spu的海报信息
    private List<String> spuImages;

    //商品详情信息,规格参数组及组下的规格参数（带值）
    private List<ItemGroupVo> groups;

}
